package com.yequan.hbb.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/10/13.
 */

public class MyOpenHelper extends SQLiteOpenHelper {
    private static final String NAME = "HBB.db";
    private static final int VERSION = 1;

    public MyOpenHelper(Context context) {
        super(context, NAME, null, VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table user(phone text primary key," +
                "password text,nickname text,image text,gender text," +
                "signal text,email text,address text)");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
